<template>
<div>
 <h3>电子产品</h3>

<ul v-for="item in arr1" :key="item">
 <li>{{ item }}</li>
    
</ul>
<h3>食品</h3>
<ul v-for="item in arr2" :key="item"> 
<li>{{item}}</li>
</ul>
</div>


</template>
<script setup>
let arr1=["手机-￥3999","耳机-$599"]
let arr2=["面包-￥10","牛奶-$8"]

</script>